package com.kevin.utility.common;

import java.util.UUID;

public class CreateUUIDUtil {
	private String message;

	public CreateUUIDUtil(){
		message=CreateUUID();
	}
	     
	public String getMessage() {
		return message;
	}
	
	public String CreateUUID(){
		UUID uuid = UUID.randomUUID();  
    	String str = uuid.toString();  
    	 // 去掉"-"符号  
    	String uuidMsg = str.substring(0, 8) + str.substring(9, 13) + str.substring(14, 18) + str.substring(19, 23) + str.substring(24);  
		return uuidMsg;
	}
}
